<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\modules\groups\models\Group */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="group-form">

    <?php $form = ActiveForm::begin(); ?>

    <div class="col-sm-4">
    <?= $form->field($model, 'groupName')->textInput(['maxlength' => true]) ?>
</div>
<div class="col-sm-4">
    <?= $form->field($model, 'groupCode')->textInput(['maxlength' => true]) ?>
</div>
<div class="col-sm-4">
    <?= $form->field($model, 'parentGroupID')->textInput() ?>
</div>
<div class="col-sm-4">
    <?= $form->field($model, 'groupDesc')->textInput(['maxlength' => true]) ?>
</div>
<div class="col-sm-4">
    <?= $form->field($model, 'oldGroupID')->textInput() ?>
</div>
<div class="col-sm-4">
    <?= $form->field($model, 'status')->textInput() ?>
</div>
<div class="col-sm-4">
    <?= $form->field($model, 'group_mark')->textInput(['maxlength' => true]) ?>
</div>
<div class="col-sm-4">
    <?= $form->field($model, 'createTime')->textInput() ?>
</div>
<div class="col-sm-4">
    <?= $form->field($model, 'updateTime')->textInput() ?>
</div>
<div class="col-sm-4">
    <?= $form->field($model, 'createUser')->textInput(['maxlength' => true]) ?>
</div>
<div class="col-sm-4">
    <?= $form->field($model, 'updateUser')->textInput(['maxlength' => true]) ?>
</div>
<div class="col-sm-4">
    <?= $form->field($model, 'groupStr')->textInput(['maxlength' => true]) ?>
</div>
    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? Yii::t('backend', 'Create') : Yii::t('backend', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
